/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const accountRouter = {
  path: '/account',
  component: Layout,
  name: '财务管理',
  meta: {
    title: '财务管理',
    icon: 'menu_account',
    subtitle:'财务'
  },
  children: [

    {
      path: '/payment/list',
      component: () => import('@/views/payment/list'),
      name: 'payment-list',
      meta: { title: '收款单管理', subtitle:'收款',icon: 'menu_payment' ,permissions:['payment.query']}
    },

    /*{
      path: '/payment/add',
      component: () => import('@/views/payment/add'),
      name: 'payment-add',
      meta: { title: '新增收款单', icon: 'menu_payment' },
      hidden: true
    },
    {
      path: '/payment/edit',
      component: () => import('@/views/payment/edit'),
      name: 'payment-edit',
      meta: { title: '修改收款单', icon: 'menu_payment' },
      hidden: true
    },*/

    {
      path: '/payment/view',
      component: () => import('@/views/payment/view'),
      name: 'payment-view',
      meta: { title: '收款单详情', icon: 'menu_payment' },
      hidden: true
    },
    {
      path: '/refund/list',
      component: () => import('@/views/refund/list'),
      name: 'refund-list',
      meta: { title: '退款单管理',subtitle:'退款', icon: 'menu_refund' ,permissions:['refund.query']}
    },
   /* {
      path: '/refunds/add',
      component: () => import('@/views/refunds/add'),
      name: 'refunds-add',
      meta: { title: '新增退款单', icon: 'menu_refunds' },
      hidden: true
    },*/
   /* {
      path: '/refunds/edit',
      component: () => import('@/views/refunds/edit'),
      name: 'refunds-edit',
      meta: { title: '修改退款单', icon: 'menu_refunds' },
      hidden: true
    },*/
    {
      path: '/refund/view',
      component: () => import('@/views/refund/view'),
      name: 'refund-view',
      meta: { title: '退款单详情', icon: 'menu_refund' },
      hidden: true
    },
    // {
    //   path: '/transfer/list',
    //   component: () => import('@/views/transfer/list'),
    //   name: 'transfer-list',
    //   meta: { title: '付款单',subtitle:'付款', icon: 'menu_transfer' ,permissions:['transfer.query']}
    // },
    // {
    //   path: '/transfer/view',
    //   component: () => import('@/views/transfer/view'),
    //   name: 'transfer-view',
    //   meta: { title: '付款单详情', icon: 'menu_transfer' },
    //   hidden: true
    // },
    {
      path: '/distributionVo/list',
      component: () => import('@/views/distributionVo/list'),
      name: 'distributionVo-list',
      meta: { title: '账单管理',subtitle:'账单', icon: 'menu_transfer' ,permissions:['distributionVo.query']}
    },
    {
      path: '/distributionVo/view',
      component: () => import('@/views/distributionVo/view'),
      name: 'distributionVo-view',
      meta: { title: '账单详情', icon: 'menu_transfer' },
      hidden: true
    },
    {
      path: '/financialReport/list',
      component: () => import('@/views/financialReport/list'),
      name: 'financialReport-list',
      meta: { title: '财务报表',subtitle:'报表', icon: 'menu_transfer' ,permissions:['financialReport.query']}
      //TODO 后端增加权限  meta: { title: '财务报表',subtitle:'报表', icon: 'menu_transfer' ,permissions:['distributionVo.query']}
    },
    {
      path: '/billsSummary/list',
      component: () => import('@/views/billsSummary/list'),
      name: 'billsSummary-list',
      meta: { title: '清单汇总',subtitle:'清单', icon: 'menu_transfer' ,permissions:['billsSummary.query']}
      //TODO 后端增加权限  meta: { title: '清单汇总',subtitle:'清单', icon: 'menu_transfer' ,permissions:['distributionVo.query']}
    },

    /* {
       path: '/transfer/add',
       component: () => import('@/views/transfer/add'),
       name: 'transfer-add',
       meta: { title: '新增付款单', icon: 'menu_transfer' },
       hidden: true
     },
     {
       path: '/transfer/edit',
       component: () => import('@/views/transfer/edit'),
       name: 'transfer-edit',
       meta: { title: '修改付款单', icon: 'menu_transfer' },
       hidden: true
     },
     */
  ]
};
export default accountRouter
